Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

resource/aws_ses_template: Send only specified attributes for update #3214

Merged
merged 1 commit into from
Jan 31, 2018

Conversation

szilveszter
Copy link
Contributor

Addresses an issue where all text-only emails suddenly turned into emails after an update. Currently the UpdateTemplate call will set the HtmlPart to an empty string if it's not specified for the resource, which results in an email with an empty body in most mail clients.

Addresses an issue where all text-only emails suddenly turned into emails after an update. Currently the `UpdateTemplate` call will set the `HtmlPart` to an empty string if it's not specified for the resource, which results in an email with an empty body in most mail clients.
@ghost ghost added the size/S Managed by automation to categorize the size of a PR. label Jan 31, 2018
@bflad
Copy link
Contributor

bflad commented Jan 31, 2018

This looks like the right change given what you've described above. Can you verify that if you have both text and html configured, then want to remove one, that simply omitting it from the UpdateTemplate request does the right thing to remove it (e.g. doesn't leave the now omitted one configured on the AWS side)?

@bflad bflad added bug Addresses a defect in current functionality. service/ses Issues and PRs that pertain to the ses service. labels Jan 31, 2018
@szilveszter
Copy link
Contributor Author

I can confirm, that is the case. I tested a build of this branch locally with my Terraform setup, and after the new update went through, the empty HTML part was removed from the template, and my emails appeared properly as plain text again after sending them out.

Copy link
Contributor

@bflad bflad left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks so much for confirming that! Normally I would ask for an acceptance test to double check this scenario here but I know I was having trouble with eventual consistency issues on update when I initially created the resource. 😢 t.Skipf("Skip due to SES.UpdateTemplate eventual consistency issues")

@bflad bflad merged commit 549a8e3 into hashicorp:master Jan 31, 2018
@bflad bflad added this to the v1.9.0 milestone Jan 31, 2018
bflad added a commit that referenced this pull request Jan 31, 2018
@bflad
Copy link
Contributor

bflad commented Feb 9, 2018

This has been released in terraform-provider-aws version 1.9.0. Please see the Terraform documentation on provider versioning or reach out if you need any assistance upgrading.

@ghost
Copy link

ghost commented Apr 8, 2020

I'm going to lock this issue because it has been closed for 30 days ⏳. This helps our maintainers find and focus on the active issues.

If you feel this issue should be reopened, we encourage creating a new issue linking back to this one for added context. Thanks!

@ghost ghost locked and limited conversation to collaborators Apr 8, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
bug Addresses a defect in current functionality. service/ses Issues and PRs that pertain to the ses service. size/S Managed by automation to categorize the size of a PR.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants